<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('app名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-app_name" data-rule="required" class="form-control" name="row[app_name]" type="text" value="{$row.app_name|htmlentities}">

            <input id="c-a_id" data-rule="required" data-source="auth.admin/index" class="form-control selectpage" data-field="username" name="row[a_id]" type="text" value="{$row.a_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('App_url')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::upload('row[app_url]',  $row.app_url, ['data-rule'=>'required'])}
<!--            <input id="c-app_url" data-rule="required" class="form-control" name="row[app_url]" type="text" value="{$row.app_url|htmlentities}">-->
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('IOS安装包')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::upload('row[ios_url]', '$row.ios_url', ['data-rule'=>'required'])}
            <!--            <input id="c-app_url" data-rule="required" class="form-control" name="row[app_url]" type="text">-->
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Background')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::upload('row[background]', $row.background, ['data-rule'=>'required'])}

<!--            <input id="c-background" data-rule="required" class="form-control" name="row[background]" type="text" value="{$row.background|htmlentities}">-->
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('App_size')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-app_size" data-rule="required" class="form-control" name="row[app_size]" type="number" value="{$row.app_size|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
